<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateDeliveryServicesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('delivery_services', function (Blueprint $table) {
            $table->id()->comment('配送员表id');
            $table->string('nickname',32)->comment('微信名称');
            $table->string('name',32)->comment('配送员名称');
            $table->string('avatar',255)->comment('配送员头像');
            $table->string('password',32)->comment('密码');
            $table->string('phone',11)->comment('配送员电话');
            $table->tinyInteger('status')->default(1)->comment('状态1启用,0禁用');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('delivery_services');
    }
}
